package org.biubiu0002.baiblog.im.processor;

import io.netty.channel.ChannelHandler;
import io.netty.handler.codec.http.FullHttpRequest;
import lombok.extern.slf4j.Slf4j;
import org.biubiu0002.baiblog.im.service.AuthService;
import org.biubiu0002.baiblog.im.session.ServerSession;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 验证登录请求
 *
 * @Author: biubiu0002
 * @Date: 2022/9/2 0:17
 **/
@Component
@ChannelHandler.Sharable
@Slf4j
public class AuthRequestProcessor {

    @Resource
    private AuthService authService;

    public Boolean action(ServerSession session, FullHttpRequest fullHttpRequest) {

        return authService.auth(session,fullHttpRequest);

    }



}
